package sale.wxb.loveshopping.entity.vo.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;
import sale.wxb.loveshopping.annotation.SwaggerDisplayEnum;
import sale.wxb.loveshopping.enums.SexEnum;

import javax.validation.constraints.*;

@Getter
@Setter
public class SysUserVo {
    @ApiModelProperty("年龄")
    @Range(min = 0, max = 200)
    private Short age;
    @ApiModelProperty("头像")
    private String avatar;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty(value = "姓名", required = true)
    @NotNull
    @NotBlank
    @Size(min = 1, max = 10)
    private String username;
    @ApiModelProperty(value = "性别 默认 0")
    @SwaggerDisplayEnum(SexEnum.class)
    private Integer sex = SexEnum.UNKNOWN.getCode();
}
